package com.efrei.uchat.model.user;

public class Chatter {
	private String pseudo;

	public Chatter(String pseudo) {
		this.pseudo = pseudo;
	}
	
	@Override
	public boolean equals(Object chatter) {
		return (chatter instanceof Chatter && 
				this.getPseudo().equals(
						((Chatter)chatter).getPseudo()));
	}
	
	@Override
	public String toString() {
		return pseudo;
	}

	public String getPseudo() {
		return pseudo;
	}
	
	protected void setPseudo(String pseudo) {
		this.pseudo = pseudo;
	}
}
